package org.linlinjava.litemall.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.linlinjava.litemall.core.util.ResponseUtil;
import org.linlinjava.litemall.db.domain.LitemallShopLog;
import org.linlinjava.litemall.db.service.LitemallShopLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 商店日志服务
 * 门店服务
 *
 * @author yliyun
 * @date 2022/09/14
 */
@Service
public class ShopLogService {
    /**
     * litemall商店日志服务
     */
    @Autowired
    private LitemallShopLogService litemallShopLogService;

    /**
     * 列表
     *
     * @param shopId  商店id
     * @param content 内容
     * @param page    页面
     * @param limit   限制
     * @param sort    排序
     * @param order   订单
     * @return {@link Object}
     */
    public Object list(Integer shopId,String content, Integer page, Integer limit, String sort, String order){
        IPage<LitemallShopLog> shops = litemallShopLogService.querySelective(shopId, content, page, limit, sort, order);
        return ResponseUtil.okPage(shops);
    }

}
